import request from '@/utils/request2'

export function getFileList(param) {
  return request({
    url: '/file/list?fold=' + param,
    method: 'get'
  })
}
export function getFileLists(param) {
  return request({
    url: '/file/lists?fold=' + param,
    method: 'get'
  })
}

export function addFold(data) {
  return request({
    url: '/file/add/fold',
    method: 'post',
    data
  })
}

export function del(data) {
  return request({
    url: '/file/del',
    method: 'delete',
    data
  })
}

export function edit(data) {
  return request({
    url: '/file/edit',
    method: 'post',
    data
  })
}

export function delAll(data) {
  return request({
    url: '/file/del/all',
    method: 'delete',
    data
  })
}

export function download(data) {
  return request({
    url: 'file/download',
    method: 'post',
    // reponseType: 'blob',
    data
  })
}
export function merge(form) {
  return request({
    url: '/upload/merge',
    method: 'post',
    data: form
  })
}

